package cn.wolfcode.shop.api.query;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Setter
@Getter
public class QueryObject  implements Serializable {  //实现Serializable接口
    private  int currentPage = 1;
    private int pageSize = 5;
    public int getStartIndex(){
        return (currentPage - 1 )*pageSize;
    }

}
